package com.xiaoling.robot.bean;

public class Msg {
    private int result;
    private String content;
    private int status;

    public static final int RECEIVED = 0;// 收到一条消息
    public static final int SENT = 1; // 发出一条消息

    public Msg() {}

    public Msg(int result, String content, int status) {
        this.result = result;
        this.content = content;
        this.status = status;
    }

    public Msg(int result, String content) {
        this.result = result;
        this.content = content;
    }

    public Msg(String content, int status) {
        this.content = content;
        this.status = status;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Msg{" +
                "result=" + result +
                ", content='" + content + '\'' +
                ", status=" + status +
                '}';
    }
}
